7 ###########################
9 # You need to edit these values.
11 DICT_NAME = "Jästūgā - English"
12 DICT_SRC_PATH = x-XX-jt.xml
13 CSS_PATH = x-XX-jt.css
14 PLIST_PATH = Info.plist
17 # Suppress adding supplementary key.
18 DICT_BUILD_OPTS = -s 0 # Suppress adding supplementary key.
20 ###########################
22 # The DICT_BUILD_TOOL_DIR value is used also in "build_dict.sh" script.
23 # You need to set it when you invoke the script directly.
25 DICT_BUILD_TOOL_DIR = "/Developer/Extras/Dictionary Development Kit"
26 DICT_BUILD_TOOL_BIN = "$(DICT_BUILD_TOOL_DIR)/bin"
28 ###########################
30 DICT_DEV_KIT_OBJ_DIR = ./objects
31 export DICT_DEV_KIT_OBJ_DIR
33 DESTINATION_FOLDER = ~/Library/Dictionaries
36 ###########################
39 "$(DICT_BUILD_TOOL_BIN)/build_dict.sh" $(DICT_BUILD_OPTS) $(DICT_NAME) $(DICT_SRC_PATH) $(CSS_PATH) $(PLIST_PATH)
44 echo "Installing into $(DESTINATION_FOLDER)".
45 mkdir -p $(DESTINATION_FOLDER)
46 ditto --noextattr --norsrc $(DICT_DEV_KIT_OBJ_DIR)/$(DICT_NAME).dictionary $(DESTINATION_FOLDER)/$(DICT_NAME).dictionary
47 touch $(DESTINATION_FOLDER)
49 echo "To test the new dictionary, try Dictionary.app."
52 $(RM) -rf $(DICT_DEV_KIT_OBJ_DIR)